package com.ruoyi.market.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CouponResponseDto {
    @JsonProperty("couponsId")
    private Long couponsId;

    private String name;

    private String code;

    private Integer type;

    private BigDecimal value;

    @JsonProperty("minAmount")
    private BigDecimal minAmount;

    @JsonProperty("startTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @JsonProperty("endTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}